<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>Title</title>
        {{include 'pages/base/layout.html'}}



</head>
    <script language="javascript">
        function html2Escape(sHtml) {
         return sHtml.replace(/[<>&"]/g,function(c){return {'<':'&lt;','>':'&gt;','&':'&amp;','"':'&quot;'}[c];});
        }
        function escape2Html(str) {
             var arrEntities={'lt':'<','gt':'>','nbsp':' ','amp':'&','quot':'"'};
             return str.replace(/&(lt|gt|nbsp|amp|quot);/ig,function(all,t){return arrEntities[t];});
            }
    {{for row in table:  }}
      //alert(escape2Html("&lt;script src=&quot;127.0.0.1:8000/pycube/static/js/demo.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;"));
      document.write(escape2Html("{{=row[13]}}"));{{pass}}

</script>
<body>

<form id="formid"  name= "myform" method = 'post'  action = '{{=URL('demo','demosql')}}'  >
            <table width="100%" border="0">
              <tr>
                <td width="60" height="40" align="right">查询条件&nbsp;</td>
                <td><input type="text" value="" class="text2" name = "id" id = "id"/></td>
              </tr>
              <tr>
                <td width="60" height="40" align="right">&nbsp;</td>
                <td><div class="c4">
                    <input type="submit" value="查询" class="btn2"  />
                </div>
                </td>
              </tr>
            </table>
</form>

<table class="table table-condensed"><thead><tr><th>菜单id</th><th>菜单名称</th><th>描述</th></tr></thead>
    <tbody>
    {{for row in table:  }}
    <tr><td>{{=row[0]}}</td><td>{{=row[2]}}</td><td>{{=row[13]}}</td></tr>{{pass}}
    </tbody>
</table>
{{=table}}
</body>
</html>